
package com.scalar.chiptrack.adaptor;

import java.util.LinkedHashMap;


public final class TestLot {

	private String m_partNumber = null;
	private String m_lotNumber = null;
	private String m_qtyIn = null;
	private String m_qtyOut = null;
	private String m_dateIn = null;
	private String m_dateOut = null;
	private String m_leadCount = null;
	private String m_status = null;
	private String m_packageType = null;
	private String m_recipeId = null;
	private String m_scheduleNumber = null;
	private String m_qtyReject = null;
	private String m_yield = null;
	private LinkedHashMap m_binQtyMap = null;
	private String m_vendorName = null;
    private String m_poNumber = null;
	private String m_testName = null;
	private String m_dateCode = null;
	private String m_expecetedDate = null;
	private String m_stage = null;
	private String m_holdCode   = null;
	private String m_testProgramRevision = null;
	private String m_holdReason = null;
	private String m_vendorLot = null;
	private String m_comments = null;
	private boolean m_hold;
	private String m_psType  = null;
	private String m_partialshipQtyIn = null;
	private String m_partialshipQtyOut = null;
	private String partialShipDateOut = null;
    private LinkedHashMap goodbinQtyMap = null;
    private LinkedHashMap rejectedbinQtyMap = null;

    private String revisedDateOut   = null;
    private String category         = null;
    private String fabLotNumber     = null;

    public TestLot()
    {

    }
    public TestLot(String vendorName)
    {
		m_vendorName = vendorName;
	}
    public TestLot(String vendorName, String psType)
    {
        m_vendorName = vendorName;
        m_psType = psType;
	}
     public int getQtyInAsInt()
     {
		int qtyIn = 0;
		try {
			qtyIn = Integer.parseInt (m_qtyIn);
		}
		catch (NumberFormatException nfe) {}
		return qtyIn;
	}

	public String getPartNumber() {
		return m_partNumber;
	}

	public String getLotNumber() {
		return m_lotNumber;
	}

	public String getQtyIn() {
		return m_qtyIn;
	}

	public String getQtyOut() {
		return m_qtyOut;
	}

	public String getDateIn() {
		return m_dateIn;
	}

	public String getDateOut() {
		return m_dateOut;
	}

	public String getLeadCount() {
		return m_leadCount;
	}

	public String getStatus() {
		return m_status;
	}

	public String getPackageType() {
		return m_packageType;
	}

	public String getRecipeId() {
		return m_recipeId;
	}

	public String getScheduleNumber() {
		return m_scheduleNumber;
	}

	public String getQtyReject() {
		return m_qtyReject;
	}

	public String getYield() {
		return m_yield;
	}

	public LinkedHashMap getBinQty() {
		return m_binQtyMap;
	}

	public String getVendorName() {
		return m_vendorName;
	}

	public void setPartNumber(String partNumber){
		m_partNumber = partNumber;
	}

	public void setLotNumber(String lotNumber){
		m_lotNumber = lotNumber;
	}

	public void setQtyIn(String qtyIn){
		m_qtyIn = qtyIn;
	}
	public void setQtyOut(String qtyOut){
	m_qtyOut =  qtyOut;
	}
	public void setDateIn(String dateIn){
		m_dateIn = dateIn;
	}

	public void setDateOut(String dateOut){
		m_dateOut = dateOut;
	}

	public void setLeadCount(String leadCount){
		m_leadCount = leadCount;
	}

	public void setStatus(String status){
		m_status = status;
	}

	public void setPackageType(String packageType){
		m_packageType = packageType;
	}

	public void setRecipeId(String recipeId){
		m_recipeId = recipeId;
	}

	public void setScheduleNumber(String scheduleNumber){
		m_scheduleNumber = scheduleNumber;
	}

	public void setQtyReject(String qtyReject){
		m_qtyReject = qtyReject;
	}

	public void setYield(String yield){
		m_yield = yield;
	}

	public void setBinQtyMap(LinkedHashMap binQtyMap){
		m_binQtyMap = binQtyMap;
	}

	public void setVendorName(String vendorName){
		m_vendorName = vendorName;
	}

	//added by Mallikarjun Ankati 05/29/2003
	public void setDateCode(String dateCode){
		m_dateCode = dateCode;
	}

	public String getDateCode(){
		return m_dateCode;
	}

	// Balaram, Sep 09 2003
	public String getPoNumber()
	{
		return m_poNumber;
	}

	public void setPoNumber( String poNumber )
	{
		m_poNumber = poNumber;
	}

	public String getTestName()
	{
		return m_testName;
	}

	public void setTestName( String testName )
	{
		m_testName = testName;
	}

	// Added by hareesh on 12th March 2004
	public String getExpecetedDate()
	{
		return m_expecetedDate;
	}

	public void setExpecetedDate( String expecetedDate )
	{
		m_expecetedDate = expecetedDate;
	}

	public String getStage() {
		return m_stage;
	}

	public void setStage(String stage) {
		m_stage = stage;
	}

	//Added by Rohan on June 25th 2004
	public String getHoldCode()
	{
		return m_holdCode;
	}

	public void setHoldCode( String holdCode )
	{
		this.m_holdCode = holdCode;
	}

	public String getHoldReason()
	{
		return m_holdReason;
	}

	public void setHoldReason( String holdReason )
	{
		this.m_holdReason = holdReason;
	}
	//End of additions by Rohan on June 25th 2004

	 public String getTestProgramRevision()
	{
		return m_testProgramRevision;
	}

	public void setTestProgramRevision( String testProgramReviosion )
	{
		this.m_testProgramRevision = testProgramReviosion;
	}
	public String getVendorLot()
	{
		return m_vendorLot;
	}
	public void setVendorLot ( String vendorLot )
	{
		this.m_vendorLot = vendorLot;
	}

	public String getComments()
	{
		return m_comments;
	}

	public void setComments ( String comments )
	{
		this.m_comments = comments;
	}

	public boolean isHold()
	{
		return m_hold;
	}

	public void setHold( boolean hold )
	{
		this.m_hold = hold;
	}

	public String getPsType()
	{
		return m_psType;
	}

	public void setPsType( String psType )
	{
		this.m_psType = psType;
	}

	 public String getPartialshipQtyOut()
	{
		return m_partialshipQtyOut;
	}

	public void setPartialshipQtyOut( String m_partialshipQtyOut )
	{
		this.m_partialshipQtyOut = m_partialshipQtyOut;
	}

	public String getPartialshipQtyIn()
	{
		return m_partialshipQtyIn;
	}

	public void setPartialshipQtyIn( String m_partialshipQtyIn )
	{
		this.m_partialshipQtyIn = m_partialshipQtyIn;
	}

     public LinkedHashMap getRejectedbinQtyMap()
     {
        return rejectedbinQtyMap;
    }

    public void setRejectedbinQtyMap(LinkedHashMap rejectedbinQtyMap)
    {
        this.rejectedbinQtyMap = rejectedbinQtyMap;
    }

    public LinkedHashMap getGoodbinQtyMap()
    {
        return goodbinQtyMap;
    }

    public void setGoodbinQtyMap(LinkedHashMap goodbinQtyMap)
    {
        this.goodbinQtyMap = goodbinQtyMap;
    }

	public String toString() {

		StringBuffer buf = new StringBuffer();

		buf.append ("[ Part Number: ").append (m_partNumber);
		buf.append ("] [Lot Number: ").append (m_lotNumber);
		buf.append ("] [Qty In: ").append (m_qtyIn);
		buf.append ("] [Qty Out: ").append (m_qtyOut);
		buf.append ("] [Date In: ").append (m_dateIn);
		buf.append ("] [Date Out: ").append (m_dateOut);
		buf.append ("] [Lead Count: ").append (m_leadCount);
		buf.append ("] [Status: ").append (m_status);
		buf.append ("] [Package Type: ").append (m_packageType);
		buf.append ("] [Recipe ID: ").append (m_recipeId);
		buf.append ("] [Scheduler Number: ").append (m_scheduleNumber);
		buf.append ("] [Qty Reject: ").append (m_qtyReject);
		buf.append ("] [Yield: ").append (m_yield);
		buf.append ("] [Bin Qty: ").append (m_binQtyMap);
		buf.append ("] [Vendor Name: ").append (m_vendorName);
		buf.append ("] [Date Code: ").append (m_dateCode);
		buf.append ("] [Expected Date: ").append(m_expecetedDate);
		buf.append ("] [PO Number: ").append(m_poNumber);
		buf.append ("] [stage: ").append(m_stage);
		buf.append ("] [PsType: ").append(m_psType);
		buf.append ("] [Hold Code: ").append(m_holdCode);
		buf.append ("] [Hold Reason: ").append(m_holdReason).append("]");
		buf.append ("] [Test Program Revision: ").append(m_testProgramRevision).append("]");
		buf.append ("] [Vendor Lot: ").append(m_vendorLot).append("]");
		buf.append ("] [Lot Comments: ").append(m_comments).append("]");
		return buf.toString();
	}

	/**
	 * @return String
	 */
	public String getPartialShipDateOut()
	{
		return partialShipDateOut;
	}

	/**
	 * @param string
	 */
	public void setPartialShipDateOut(String string)
	{
		partialShipDateOut = string;
	}

    public String getRevisedDateOut()
    {
        return revisedDateOut;
    }

    public void setRevisedDateOut( String revisedDateOut )
    {
        this.revisedDateOut = revisedDateOut;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getFabLotNumber() {
        return fabLotNumber;
    }

    public void setFabLotNumber(String fabLotNumber) {
        this.fabLotNumber = fabLotNumber;
    }

}